/** 当你的路由表太长的时候，你可以把路由表的内容分成几个小的模块**/

import UnitTopNav from "@/components/UnitTopNav";
import UnitIndex from "@/views/unit/UnitIndex";
import UnitInfo from "@/views/unit/UnitInfo";
import ReworkPassWord from "@/views/unit/ReworkPassWord";
import ShowProjectcategorys from "@/views/unit/ShowProjectcategorys";
import ApplyProject from "@/views/unit/ApplyProject";
import SimpleSearch from "@/views/unit/SimpleSearch";
import ViewProjectInfo from "@/views/unit/viewProjectInfo";
import ViewProjectInfo1 from "@/views/unit/viewProjectInfo1";
import HighSearch from "@/views/unit/HighSearch";

const UnitRouter = {
    //单位
    path: 'unit',
    name: 'unitTopNav',
    component: UnitTopNav,
    children: [
        //单位首页
        {
            path: 'index',
            name: 'unitIndex',
            component: UnitIndex,
        },
        //单位信息
        {
            path: 'info',
            name: 'unitInfo',
            component: UnitInfo
        },
        //修改密码
        {
            path:'updatePassword',
            name:'updatePassword',
            component: ReworkPassWord
        },
        //项目类别
        {
            path:'declareProject',
            name:'declareProject',
            component: ShowProjectcategorys
        },
        //申报项目
        {
            path: 'applyProject',
            name: 'applyProject',
            component: ApplyProject
        },
        //简单查询
        {
            path: 'simpleSearch',
            name:'simpleSearch',
            component: SimpleSearch
        },
        //查看项目信息（不可修改）
        {
            path:'viewProjectInfo',
            name:'viewProjectInfo',
            component: ViewProjectInfo
        },
        //查看项目信息（可修改）
        {
            path:'viewProjectInfo1',
            name:'viewProjectInfo1',
            component: ViewProjectInfo1
        },
        {
            path: 'highQuery',
            name: 'highQuery',
            component: HighSearch
        }
    ]
}

export default UnitRouter
